
<?php $pl = $this->postListVars[$this->postListLevel]; ?>

<?php
	if ($pl->submitTopFormVisible) {
		echo $this->render('wall-form.phtml');
	}
?>


<?php if ($pl->postCount > 0): ?>

<ul class="cl">
<?php foreach ($pl->postList as $p): ?>
  <li class="mg_vt_emm">
  <div class="post-entry">
<div class="post-author"><a href="<?php echo $p->creatorUrl; ?>"><img src="<?php echo $p->creatorAvatarUrl; ?>" alt="<?php echo $p->creatorName; ?>" /></a></div>
<div class="post-content">
  <div>
    <small><strong><a href="<?php echo $p->creatorUrl; ?>"><?php echo $p->creatorName; ?></a></strong>
 &bull; <?php echo $this->relTimeString($p->time); ?>
<?php if ($p->hostLinkVisible === TRUE): ?>
 &bull; <a href="<?php echo $p->hostUrl; ?>"><?php echo $p->hostName; ?></a>
<?php endif; ?>
 &bull; <a href="<?php echo $p->url; ?>" title="Permalink"><?php echo $this->itemCount($p->commentCount, 'Response', '1 response', '%d responses'); ?></a>
<?php if ($p->editLinkUrl): ?>
 &bull; <a href="<?php echo $p->editLinkUrl; ?>">Edit</a>
<?php endif; ?>
<?php if ($p->deleteLinkUrl): ?>
 &bull; <a href="<?php echo $p->deleteLinkUrl; ?>">Delete</a>
<?php endif; ?>
	</small>
  </div>
  <div class="post-body"><?php echo $p->content; ?></div>
</div>
<div class="clear"></div>
<div class="mg_lf_l fs_s">
<?php if ($p->commentCount > 2): ?>
  <div class="pd_s"><a href="<?php echo $p->url; ?>">Show all responses</a></div>
<?php endif; ?>
<?php
	$reqParams = array(
		'post_host_class' => 'post.wall',
		'post_host_id' => $p->id,
		'post_class' => 'comment',
		'post_parent_id' => 0,
		'post_sort_mode' => 'oldest',
		'post_sublist' => TRUE,
		'post_list_start' => -2,
	);
	echo $this->action('list', 'index', 'post', $reqParams);
?>
</div>
<div class="clear"></div>
  </div>
  </li>
<?php endforeach; ?>
</ul>

<div class="block box_1 shade_1 pd_s">
<?php if ($pl->postListPagePrevUrl): ?>
<a href="<?php echo $pl->postListPagePrevUrl; ?>">&larr; Previous</a> &bull;
<?php endif; ?>
Posts <strong><?php echo $pl->postListFirst; ?> - <?php echo $pl->postListLast; ?></strong> of <strong><?php echo $pl->postCountTotal; ?></strong>
<?php if ($pl->postListPageNextUrl): ?>
 &bull; <a href="<?php echo $pl->postListPageNextUrl; ?>">Next &rarr;</a>
<?php endif; ?>
</div>

<?php endif; ?>


<?php
	if ($pl->submitBottomFormVisible) {
		echo $this->render('wall-form.phtml');
	}
?>
